<template>
    <div>
        <h1>{{ msg }}</h1>
        <button @click='reverse'>逆转乾坤</button>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                msg: 'Hellow,黄树杰'
            }
        },
        methods: {
            reverse() {
                this.msg = this.msg.split('').reverse().join('')
            }
        }
    }
</script>

<style>

</style>